//      firststep_page.cpp
//

#include "firststep_page.h"


FirstStepPage::FirstStepPage(QVector<qreal> mass,
                            qreal w1,
                            quint32 s1,
                            quint32 u1,
                            QWidget* parent)
    : QWidget(parent)
{
    setupUi(this);

    QTableWidgetItem* item = new QTableWidgetItem();
    tableWidget->setItem(0, 0, item);
    item->setTextAlignment(Qt::AlignHCenter | Qt::AlignVCenter);
    item->setText(QString::number(mass[0]));

    item = new QTableWidgetItem();
    tableWidget->setItem(0, 1, item);
    item->setTextAlignment(Qt::AlignHCenter | Qt::AlignVCenter);
    item->setText(QString::number(mass[1]));

    item = new QTableWidgetItem();
    tableWidget->setItem(0, 2, item);
    item->setTextAlignment(Qt::AlignHCenter | Qt::AlignVCenter);
    item->setText(QString::number(mass[2]));

    item = new QTableWidgetItem();
    tableWidget->setItem(0, 3, item);
    item->setTextAlignment(Qt::AlignHCenter | Qt::AlignVCenter);
    item->setText(QString::number(w1));

    item = new QTableWidgetItem();
    tableWidget->setItem(0, 4, item);
    item->setTextAlignment(Qt::AlignHCenter | Qt::AlignVCenter);
    item->setText(QString::number(s1));

    item = new QTableWidgetItem();
    tableWidget->setItem(0, 5, item);
    item->setTextAlignment(Qt::AlignHCenter | Qt::AlignVCenter);
    item->setText(QString::number(u1));
}


